package org.dormnet.dao.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

import org.dormnet.dao.bean.Stumore;

public class StumoreMapping implements BeanMapping {
	
	public Object mapping(ResultSet resultSet) throws SQLException {
		Stumore stumore = new Stumore();
		stumore.setBigimage(resultSet.getString("bigimage"));
		stumore.setBirthday(resultSet.getDate("birthday"));
		stumore.setClazz(resultSet.getString("clazz"));
		stumore.setCollege(resultSet.getString("college"));
		stumore.setEmailchecked(resultSet.getInt("emailchecked"));
		stumore.setStudentid(resultSet.getString("studentid"));
		stumore.setLeader(resultSet.getInt("leader"));
		stumore.setNickname(resultSet.getString("nickname"));
		stumore.setPhone(resultSet.getString("phone"));
		stumore.setPosition(resultSet.getString("position"));
		stumore.setSafeanswer(resultSet.getString("safeanswer"));
		stumore.setSafequestion(resultSet.getString("safequestion"));
		stumore.setSelfintroduce(resultSet.getString("selfintroduce"));
		stumore.setSex(resultSet.getInt("sex"));
		stumore.setSmallimage(resultSet.getString("smallimage"));
		
		
		return stumore;
	}

}
